using System;
using System.Collections.Generic;
using BitMango.Diagnostics;

public static class FlurryLogSender
{
    public static void LogRecord(string eventIdSet, bool isRecursive = false)
    {
        List<string> list = new List<string>(eventIdSet.Split(new char[]
        {
            '.'
        }));
        Debugger.Assert(list.Count > 2);
        while (list.Count >= 2)
        {
            FlurryLogSender.Post(list);
            if (isRecursive)
            {
                break;
            }
            list.RemoveAt(list.Count - 1);
        }
    }

    private static void Post(List<string> wordlist)
    {
        string eventName = string.Join("_", wordlist.GetRange(0, wordlist.Count - 1).ToArray());
        string value = wordlist[wordlist.Count - 1];
        Dictionary<string, string> dictionary = new Dictionary<string, string>();
        dictionary.Clear();
        dictionary.Add("Data", value);
        FlurryLogSender.Log(eventName, dictionary);
    }

    public static void Log(string eventName, Dictionary<string, string> dic = null)
    {
    }
}
